            <?php 
                $search_base_url=$html->url("/search");
                if(isset($category) && $category)$search_base_url=$html->url(array("controller"=>"posts","action"=>"search",$category));
                if(isset($location) && $location)$search_base_url.="/location:".$location
            ?>
            <div class="search_box">
                <form action="<?php echo $search_base_url ?>" method="get">
                    <input class="go_btn"  type="image" src="<?php echo $html->url('/') ?>img/go.gif"/>
                    <input id="key_search" name="look" type="text" value="<?php echo isset($look)?$look:"" ?>"/> 
                    <label for="key_search"><?php __("Search") ?></label>
                </form>
                
            </div>